package view.game
{
	public class AnalyseResult
	{
		public var cbFourCount:uint;						//四张数目
		public var cbThreeCount:uint;						//三张数目
		public var cbDoubleCount:uint;						//两张数目
		public var cbSignedCount:uint;						//单张数目
		public var cbSignedLineCount:uint;					//单连数目
		public var cbDoubleLineCount:uint;					//对张数目
		public var cbMissileCount:uint;					//火箭数目
		public var cbAircraftCount:uint;					//飞机数目
		public var cbSignedCardData:Array;					//单张扑克
		public var cbDoubleCardData:Array;					//两张扑克
		public var cbThreeCardData:Array;					//三张扑克
		public var cbFourCardData:Array;					//四张扑克
		public var cbSignedLineCardData:Array;				//单顺扑克
		public var cbDoubleLineCardData:Array;				//双顺扑克
		public var cbMissileCardData:Array;				//火箭扑克
		public var cbAircraftCardData:Array;				//飞机扑克
		
		public function AnalyseResult()
		{
			cbFourCardData = [];
			cbThreeCardData = [];
			cbDoubleCardData = [];
			cbSignedCardData = [];
			cbSignedLineCardData = [];
			cbDoubleLineCardData = [];
			cbMissileCardData = [];
			cbAircraftCardData = [];
		}
		public function reset():void
		{
			cbFourCardData.length = 0;
			cbThreeCardData.length = 0;
			cbDoubleCardData.length = 0;
			cbSignedCardData.length = 0;
			cbSignedLineCardData.length = 0;
			cbDoubleLineCardData.length = 0;
			cbMissileCardData.length = 0;
			cbAircraftCardData.length = 0;
			cbFourCount = 0;
			cbThreeCount = 0;
			cbDoubleCount = 0;
			cbSignedCount = 0;
			cbSignedLineCount = 0;
			cbDoubleLineCount = 0;
			cbMissileCount = 0;
			cbAircraftCount = 0;
		}
		public function getSingleCard():uint
		{
			if(cbSignedCardData.length > 0)
				return cbSignedCardData[0];
			else if(cbDoubleCardData.length > 0)
				return cbDoubleCardData[0][0];
			else if(cbThreeCardData.length > 0)
				return cbThreeCardData[0][0];
			else if(cbFourCardData.length > 0)
				return cbFourCardData[0][0];
			else if(cbSignedLineCardData.length > 0)
				return cbSignedLineCardData[0][0];
			else if(cbDoubleLineCardData.length > 0)
				return cbDoubleLineCardData[0][0];
			else if(cbMissileCardData.length > 0)
				return cbMissileCardData[0][0];
			else
				return cbAircraftCardData[0][0];
		}
	}
}